﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="AddClassUser.aspx.cs" Inherits="sysadmin_DL_Project_AddClassUser" %>

<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>班级添加人员</title>
    <link href="../../../css/1/css/css.css" type="text/css" rel="stylesheet" />

    <script type="text/javascript">
    function postBackByObject()
    {
      var o = window.event.srcElement;
      //判断激发的对象是否为checkbox,如果是则激发__doPostBack("","");
     //因为前台生成的checkbox是"<input type='checkbox'./> "
    //所以判断如下:
      if(o.tagName == "INPUT" && o.type == "checkbox")
        {
           __doPostBack("","");    //注意:__doPostBack中为两个下划线组成"_"
        }
    }
    </script>

    <script type="text/javascript" language="javascript">
        function ShowNo()                        //隐藏两个层
        {
            document.getElementById("doing").style.display="none";
            document.getElementById("divLogin").style.display="none";
        }
        function $(id)         
        {
            return (document.getElementById) ? document.getElementById(id) : document.all[id] ;
        }
        function showFloat()                    //根据屏幕的大小显示两个层
        {
            var range = getRange();
            $('doing').style.width = range.width + "px";
            $('doing').style.height = range.height + "px";
            $('doing').style.display = "block";
            document.getElementById("divLogin").style.display="";
        }
        function getRange()                      //得到屏幕的大小
        {
              var top     = document.body.scrollTop;
              var left    = document.body.scrollLeft;
              var height  = document.body.clientHeight;
              var width   = document.body.clientWidth;

              if (top==0 && left==0 && height==0 && width==0) 
              {
                top     = document.documentElement.scrollTop;
                left    = document.documentElement.scrollLeft;
                height  = document.documentElement.clientHeight;
                width   = document.documentElement.clientWidth;
              }
              return  {top:top  ,left:left ,height:height ,width:width } ;
        } 

    </script>

</head>
<body class="bodymain">
    <form id="form1" runat="server">
        <span style="font-size:14px; font-weight:bold"> 添加学员</span>
        <br />
        <asp:Panel ID="pl_User" runat="server" Width="100%">
            <br />
            <table width="100%" border="0" cellspacing="0" cellpadding="0" class="btnbg">
                <tr>
                    <td>
                        <asp:CheckBox ID="chkAll" runat="server" Text="全选/取消" OnCheckedChanged="chkAll_CheckedChanged"
                            AutoPostBack="True" ValidationGroup="gs" />
                        <asp:CheckBox ID="chkCancel" runat="server" Text="反选" OnCheckedChanged="chkCancel_CheckedChanged"
                            AutoPostBack="True" ValidationGroup="gs" />&nbsp;
                        <asp:Button ID="btn_Add" runat="server" CssClass="inputBotton2" OnClick="btn_Add_Click"
                            Text="保存" />&nbsp;
                            <asp:Button ID="btn_Back" runat="server" CssClass="inputBotton2" OnClick="btn_Back_Click"
                            Text="返回" />
                    </td>
                    <td>
                        <asp:TextBox ID="txt_SearchKey" runat="server"></asp:TextBox>
                        <asp:Button ID="btn_SortSearch" runat="server" Text="搜索" CssClass="inputBotton2" OnClick="btn_SortSearch_Click" />&nbsp; <a href="javascript:void(0)" onclick="showFloat()">
                                <%=GetLanageValueByKey("btn_LevelSearch", PowerCreator.LMS.Language.LanagetItemType.Page)%>
                                <!--高级搜索-->
                            </a>&nbsp;
                    </td>
                </tr>
            </table>
            <asp:Repeater ID="rpt_User" runat="server" OnItemCommand="rpt_User_ItemCommand">
                <HeaderTemplate>
                    <table width="100%" border="0" cellpadding="0" cellspacing="0" class="mainList">
                        <tr>
                            <th>
                                &nbsp;</th>
                            <th>
                                帐户
                                &nbsp;
                                <!--  帐户-->
                            </th>
                            <th>
                                姓名
                                &nbsp;
                                <!--  用户类型-->
                            </th>
                            <th>
                                学校
                                &nbsp;
                                <!--  真实姓名-->
                            </th>
                            <th>
                                职称
                                &nbsp;
                                <!--  所属部门-->
                            </th>
                            <th>
                                职务
                                &nbsp;
                                <!--  所属班级-->
                            </th>
                            <th>
                                学历
                                &nbsp;
                                <!--  性别-->
                            </th>
                            
                            <th>
                                <%=GetLanageValueByKey("ManagerRole_gv_c4", PowerCreator.LMS.Language.LanagetItemType.Page)%>
                                &nbsp;
                                <!--  操作-->
                            </th>
                        </tr>
                </HeaderTemplate>
                <ItemTemplate>
                    <tr>
                        <td>
                            <asp:CheckBox ID="chkSelect" runat="server" />
                            <asp:Label ID="lblid" runat="server" Text='<%#Eval("Learner_Id")%>' Visible="False"></asp:Label>
                        </td>
                        <td>
                            <%#Eval("UserName")%>
                            &nbsp;
                        </td>
                        <td>
                            <%#Eval("Name")%>
                            &nbsp;
                        </td>
                        <td>
                            <%#Eval("SchoolGroupName")%>
                            &nbsp;
                        </td>
                        <td>
                            <%#Eval("TeadutyName")%>
                            &nbsp;
                        </td>
                        <td>
                            <%#Eval("TeajobName")%>
                            &nbsp;
                        </td>
                        <td>
                            <%#Eval("StrEducation")%>
                            &nbsp;
                        </td>
                        <td>
                            <asp:LinkButton ID="lnkbtn_addclass" runat="server" CommandName="laddclassuser" CommandArgument='<%#Eval("Learner_Id")%>'><%=GetLanageValueByKey("btn_Save", PowerCreator.LMS.Language.LanagetItemType.Page)%></asp:LinkButton>
                        </td>
                    </tr>
                </ItemTemplate>
                <FooterTemplate>
                    </table>
                </FooterTemplate>
            </asp:Repeater>
            <table width="100%" border="0" cellpadding="0" cellspacing="0">
                <tr>
                    <td align="center">
                        <webdiyer:AspNetPager ID="AspNetPager1" runat="server" HorizontalAlign="Center" OnPageChanged="AspNetPager1_PageChanged"
                            ShowCustomInfoSection="Left" Width="100%" meta:resourcekey="AspNetPager1" Style="font-size: 14px"
                            InputBoxStyle="width:19px" CustomInfoHTML="当前页  <font color='red'><b>%CurrentPageIndex%</b></font> 总页数  %PageCount%  当前条数 %StartRecordIndex%-%EndRecordIndex%"
                            FirstPageText="首页" LastPageText="末页" NextPageText="下一页" PrevPageText="上一页">
                        </webdiyer:AspNetPager>
                    </td>
                </tr>
            </table>
        </asp:Panel>
        <div id="doing" style="filter: alpha(opacity=30); -moz-opacity: 0.3; opacity: 0.3;
            background-color: #000; width: 100%; height: 100%; z-index: 1000; position: absolute;
            left: 0; top: 0; display: none; overflow: hidden;">
        </div>
        <div id="divLogin" style="border: solid 10px #898989; background: #fff; padding: 10px;
            width: 780px; z-index: 1001; position: absolute; display: none; top: 50%; left: 50%;
            margin: -200px 0 0 -400px;">
            <div style="padding: 3px 15px 3px 15px; text-align: left; vertical-align: middle;">
                <table width="100%" border="0" cellpadding="0" cellspacing="0" class="tree-titbg_right">
                    <tr>
                        <td class="tree-titbg_left">
                            <%=GetLanageValueByKey("btn_LevelSearch", PowerCreator.LMS.Language.LanagetItemType.Page)%>
                            <!--高级搜索-->
                        </td>
                    </tr>
                </table>
                <table width="100%" border="0" cellspacing="0" cellpadding="0" class="tableList2">
                    <tr>
                        <th>
                            帐户
                            &nbsp;
                            <!--  帐户-->
                        </th>
                        <td>
                            <asp:TextBox ID="txt_UserName" runat="server"></asp:TextBox></td>
                        <th>
                            姓名
                            &nbsp;
                            <!--  真实姓名-->
                        </th>
                        <td>
                            <asp:TextBox ID="txt_RealName" runat="server"></asp:TextBox></td>
                    </tr>
                    <tr>
                        <th>
                            所属学校
                            &nbsp;
                            <!--  所属学校-->
                        </th>
                        <td>
                            <asp:DropDownList ID="ddl_School" runat="server" >
                            </asp:DropDownList></td>
                        <th>
                           所属区域
                            &nbsp;
                            <!--  所属区域-->
                        </th>
                        <td>
                            <asp:DropDownList ID="ddl_region" runat="server">
                            </asp:DropDownList></td>
                    </tr>
                    <tr>
                        <th>
                            教师流水号
                            &nbsp;
                            <!--  性别-->
                        </th>
                        <td>
                            <asp:TextBox ID="txt_TeacherID" runat="server"></asp:TextBox></td>
                        <th>
                            学年
                            &nbsp;
                            <!--  帐户状态-->
                        </th>
                        <td>
                            <asp:DropDownList ID="ddl_xuenian" runat="server">
                </asp:DropDownList></td>
                    </tr>
                      
                    <tr>
                        <th>
                            学科
                            &nbsp;
                            <!--  性别-->
                        </th>
                        <td>
                            <asp:DropDownList ID="ddl_xeke_Catalog" runat="server">
                </asp:DropDownList></td>
                        <th>
                            学段
                            &nbsp;
                            <!--  帐户状态-->
                        </th>
                        <td>
                            <asp:DropDownList ID="ddl_xueduan_Stage" runat="server">
                </asp:DropDownList></td>
                    </tr>
                    <tr>
                        <th>
                            职务
                            &nbsp;
                            <!--  性别-->
                        </th>
                        <td>
                            <asp:DropDownList ID="ddl_zhiwu" runat="server">
                            </asp:DropDownList></td>
                        <th>
                            职称
                            &nbsp;
                            <!--  帐户状态-->
                        </th>
                        <td>
                            <asp:DropDownList ID="ddl_zhicheng" runat="server">
                </asp:DropDownList></td>
                    </tr>
                    <tr>
                        <th>
                            学历
                            &nbsp;
                            <!--  性别-->
                        </th>
                        <td>
                            <asp:DropDownList ID="ddl_xueli" runat="server">
                </asp:DropDownList></td>
                        <th>
                            特殊分类
                            &nbsp;
                            <!--  帐户状态-->
                        </th>
                        <td>
                            <asp:DropDownList ID="ddl_Sepcial" runat="server">
                </asp:DropDownList></td>
                    </tr>
                    <tr>
                        <td colspan="5" class="tree-bottom-bg">
                            <asp:Button ID="btn_Search" runat="server" CssClass="inputBotton2" OnClick="btn_Search_Click"
                                Text="搜索" />&nbsp;
                            <input id="btn_colse" type="button" value='<%=GetLanageValueByKey("btn_Colse", PowerCreator.LMS.Language.LanagetItemType.Page)%>'
                                class="inputBotton2" onclick="ShowNo()" />
                            &nbsp;
                        </td>
                    </tr>
                </table>
            </div>
        </div>
    </form>
</body>
</html>
